﻿<%@ Page Language="C#" MasterPageFile="~/Navigations.Master" ValidateRequest="false" AutoEventWireup="true" CodeBehind="MenuManager.aspx.cs" Inherits="WeChat.Manager.MenuManager" Title="菜单设置" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript"></script>
    <link href="../bootstrap-3.3.5-dist/css/bootstrap.css" rel="stylesheet" />
    <script src="../bootstrap-3.3.5-dist/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function tips(){
            $("#myTip").modal("show");
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      <div class="container" style="margin-bottom:10px;">
          <div class="row">
           <div class="col-md-6">
    <asp:Button ID="Button1" runat="server" class="btn btn-primary" Text="生成普通菜单" OnClick="Button1_Click" />
               (首次使用公众号，点击此按钮生成无订餐系统的普通菜单)
              
        </div>
              <div class="col-md-6">
                <asp:Button ID="Button2" runat="server"  class="btn btn-primary" Text="生成有订餐系统菜单" OnClick="Button2_Click" /> (首次使用公众号，点击此按钮生成有订餐按钮的菜单)
                  </div>
              </div>
                </div>
    <div class="container">
      <div class="row">
        <div class="col-md-6">
            <div class="panel panel-info">
               <div class="panel-heading">
                  <h3 class="panel-title">用户关注后推送消息</h3>
               </div>
               <div class="panel-body">
                    <textarea id="texts" runat="server" class="form-control" rows="3" placeholder="请在此输入用户关注后自动回复给用户的推送消息文本"></textarea>
               </div>
               <div class="panel-footer text-right">
                  <asp:Button ID="sendText" class="btn btn-primary" runat="server" Text="保存" OnClick="setInfo" />
                  <asp:Button ID="sendText2" class="btn btn-warning" runat="server" Text="查看现有消息" OnClick="getInfo" />
               </div>
            </div>
       </div>
       
       <div class="col-md-6">
            <div class="panel panel-info">
               <div class="panel-heading">
                  <h3 class="panel-title">连接客服发送文本消息</h3>
               </div>
               <div class="panel-body">
                    <textarea id="consums" runat="server" class="form-control" rows="3" placeholder="请在此输入用户点击连接客服菜单后回复给用户的消息文本"></textarea>
               </div>
               <div class="panel-footer text-right">
                  <asp:Button ID="consum" class="btn btn-primary" runat="server" Text="保存" OnClick="setInfo" />
                  <asp:Button ID="consum2" class="btn btn-warning" runat="server" Text="查看现有消息" OnClick="getInfo" />
               </div>
            </div>
       </div>
    </div>
    </div>

    <div class="container">
      <div class="row">
        <div class="col-md-6">
            <div class="panel panel-success">
               <div class="panel-heading">
                  <h3 class="panel-title">公司简介菜单推送消息</h3>
               </div>
               <div class="panel-body">
                     <form class="form-horizontal" role="form">
                       <div class="form-group">
                          <label for="name" class="col-sm-2 form-control-static">公司简介</label>
                          <div class="col-sm-10">
                            <textarea id="introductions" runat="server" class="form-control" rows="2" placeholder="请在此输入要用户点击菜单后推送的素材ID"></textarea>
                          </div>
                       </div>
                    </form>
               </div>
               <div class="panel-footer text-right">
                  <asp:Button ID="introduction" class="btn btn-primary" runat="server" Text="保存" OnClick="setInfo" />
                  <asp:Button ID="introduction2" class="btn btn-warning" runat="server" Text="查看现有ID" OnClick="getInfo" />
               </div>
            </div>
       </div>
       
       <div class="col-md-6">
            <div class="panel panel-success">
               <div class="panel-heading">
                  <h3 class="panel-title">最新资讯菜单推送消息</h3>
               </div>
               <div class="panel-body">
                       <div class="form-group">
                          <label for="name" class="col-sm-2 form-control-static">最新资讯</label>
                          <div class="col-sm-10">
                             <textarea id="infomations" runat="server" class="form-control" rows="2" placeholder="请在此输入要用户点击菜单后推送的素材ID"></textarea>
                          </div>
                       </div>
               </div>
               <div class="panel-footer text-right">
                  <asp:Button ID="newInfo" class="btn btn-primary" runat="server" Text="保存" OnClick="setInfo" />
                  <asp:Button ID="newInfo2" class="btn btn-warning" runat="server" Text="查看现有ID" OnClick="getInfo" />
               </div>
            </div>
       </div>
    </div>
    </div>
    

   <!--rating modal's content-->
<div class="modal fade" id="myTip" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
          <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <h4>提示</h4>
            </div><!--Modal header-->
            <div class="modal-body"><h3><asp:Label ID="Label1" runat="server"></asp:Label></h3>
            </div><!--Modal body-->
            <div class="modal-footer">
              <a href="#" class="btn btn-default" data-dismiss="modal" >关闭</a>
            </div><!--Modal footer-->
      </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</asp:Content>

